* Padding parser functions now work with strings like '0' that evaluate to false
* (bug 10332) Title->userCan( 'edit' ) may return false positive
* Fix bug with <nowiki> in front of links for wikis where linkPrefixExtension is true
+* (bug 10552) Suppress rollback link in history for single-revision pages
+
== API changes since 1.10 ==
$tools = array();
- if( $wgUser->isAllowed( 'rollback' ) && $latest ) {
- $tools[] = '<span class="mw-rollback-link">'
- . $this->mSkin->buildRollbackLink( $rev )
- . '</span>';
- }
-
if ( !is_null( $next ) ) {
+ if( $wgUser->isAllowed( 'rollback' ) && $latest ) {
+ $tools[] = '<span class="mw-rollback-link">'
+ . $this->mSkin->buildRollbackLink( $rev )
+ . '</span>';
+ }
+
$undolink = $this->mSkin->makeKnownLinkObj(
$this->mTitle,
wfMsgHtml( 'editundo' ),